How To Calculate The Average Value And Rms Value Of A Function